{{ define "main" }}

<main>

  <aside>
    {{ partial "menu.html" (dict "menuID" "docs" "page" .) }}
  </aside>

  <section id="main">
    <h1 id="title">{{ .Title }}</h1>
    <article id="content">
      {{ .Content }}
    </article>
  </section>

  <aside>


  </aside>

  <aside id="meta">
    <h4 id="date"> {{ .Date.Format "Mon Jan 2, 2006" }} </h4>
    <h5 id="wordcount"> {{ .WordCount }} Words </h5>

    {{ with .GetTerms "tags" }}
    <ul id="tags">
      {{ range . }}
      <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
      {{ end }}
    </ul>
    {{ end }}

  </aside>
  <footer>
    {{ with .PrevInSection }}
    {{/* <a class="previous" href="{{ .Permalink }}"> {{ .Title }}</a> */}}
    <a class="previous" href="{{ .Permalink }}"> 上一篇</a>
    {{ end }}
    {{ with .NextInSection }}
    {{/* <a class="next" href="{{ .Permalink }}"> {{ .Title }}</a> */}}
    <a class="next" href="{{ .Permalink }}"> 下一篇</a>
    {{ end }}
  </footer>

</main>

{{ end }}